package cn.xmy.demo01.service.impl;


import cn.xmy.demo01.dao.OrderDao;
import cn.xmy.demo01.pojo.Order;
import cn.xmy.demo01.service.OrderService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.sql.SQLException;
@Service
public class OrderServiceImpl implements OrderService {
    @Autowired
    OrderDao orderDao;

    @Override
    public int addOrder(Order order) throws SQLException, ClassNotFoundException {
        return orderDao.addOrder(order);
    }
}
